package com.graduate.daydayup.adpter

import android.widget.BaseAdapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.graduate.daydayup.R
import com.graduate.daydayup.room.NoteContent

class NoteAdapter(layoutResId: Int) :BaseQuickAdapter<NoteContent,BaseViewHolder>(layoutResId) {
    override fun convert(holder: BaseViewHolder, item: NoteContent) {
        holder.setText(R.id.tv_type,item.type)
        holder.setText(R.id.tv_content,item.name)
    }
}